package com.example.buy.repository;

import com.example.buy.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,String> {
    User findByUsername(String username);//类名和主键类型
}
